<?php
namespace Admin\Controller; 
use Org\Util;
use Org\GrLBS; 
/**
 * Description of LbsCoordinate
 *
 * @author Myron
 */
class LbsCoordinateController extends AdminController {
    
    public function index(){
        $name = I('toStreet');
        $map['toStreet'] = array('like', '%' . (string) $name . '%');
        $list = $this->lists('lbs_coordinate', $map); 
        int_to_string($list);
        $this->assign('_list', $list); 
        $this->display();
    }
    
    public function delete($id=''){
        $map['id']=$id;
        $count=M('lbs_coordinate')->where($map)->delete();
        if($count>0){
            $this->success('删除成功！');
        }else{
            $this->success('删除失败！');
        }
    }
}
